/*
* $Id: TableStructs.h 117 2010-07-13 09:42:19Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _TABLE_STRUCTS_H_
#define _TABLE_STRUCTS_H_

struct tableItem{
	std::tstring m_strValue;
	tableItem(const std::tstring& strName)
		: m_strValue(strName){}
};

struct tableHeader : public tableItem{
	int m_nId;
	enum type{
		STRING = 1,
		INTEGER,
		DOUBLE,
		BOOL,
		DATE
	}m_type;
	tableItem* m_pNext;
	tableItem* m_pBack;
	tableHeader(const std::tstring& strName, int nId, type tp)
		: tableItem(strName), m_nId(nId),
		m_pNext(NULL), m_pBack(NULL), m_type(tp){}
};

struct tableCel : public tableItem{
	tableItem* m_pHeader;
	tableCel(const std::tstring& strName, tableItem* pHeader)
		: tableItem(strName), m_pHeader(pHeader){}
};

#endif/*_TABLE_STRUCTS_H_*/